package labox.innovation.gameserver.model.actor.status;

import labox.innovation.gameserver.model.actor.L2Attackable;
import labox.innovation.gameserver.model.actor.L2Character;

public class AttackableStatus extends NpcStatus {
	
	public AttackableStatus(L2Attackable activeChar) {
		super(activeChar);
	}

	@Override
	public final void reduceHp(int value, L2Character attacker) {
		reduceHp(value, attacker, true, false, false);
	}

	@Override
	public final void reduceHp(int value, L2Character attacker, boolean awake, boolean isDOT, boolean isHpConsumption) {
		if (getActiveChar().isDead())
			return;
		super.reduceHp(value, attacker, awake, isDOT, isHpConsumption);
	}

	@Override
	public L2Attackable getActiveChar() {
		return (L2Attackable) super.getActiveChar();
	}
}